package com.yang.biz.modular.taskcenter.enums;

/**
 * @author: yangjianzhi
 * @version1.0
 */
public enum TaskStatusEnum {

    /**
     *
     */
    IN_PROGRESS("进行中"),

    FAIL("失败"),

    COMPLETED("已完成");

    private final String value;

    public String getValue() {
        return value;
    }

    TaskStatusEnum(String value) {
        this.value = value;
    }

    public static boolean valid(String value) {
        return IN_PROGRESS.getValue().equals(value) || COMPLETED.getValue().equals(value)
                || FAIL.getValue().equals(value);
    }
}
